package com.huiminpay.merchant.convert;

import com.huiminpay.merchant.dto.MerchantDto;
import com.huiminpay.merchant.entity.Merchant;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface MerchantConvert {
    MerchantConvert INSTANCE= Mappers.getMapper(MerchantConvert.class);
    MerchantDto entity2dto(Merchant merchant);
    Merchant dto2entity(MerchantDto merchantDto);
    List<Merchant> listDto2entity(List<MerchantDto> listDto);
    List<MerchantDto> listentity2Dto(List<Merchant> listMerchant);
}
